Learn R Programming

Rfast (version 1.2)

Generate keys for the given values using Paul Larsson's function: Generate keys for the given values using Paul Larsson's function

Description

Generate keys for the given values using Paul Larsson's function.

Usage

generate_key_1(x)

Arguments

x
A character vector with values.

Value

Return a vector with keys created by the given values.

Details

This function works like hash function but it only creates the keys and returns it to the user

See Also

generate_key_2

Examples

Run this code
x <- as.character(iris[, 5])
keys <- generate_key_1(x)

Run the code above in your browser using DataLab